home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / tour.dxr / 00275_text entry 3.ls < prev    next >
Encoding:
Text File  |  2000-01-21  |  757 b   |  34 lines

  1. on enterFrame
  2.   global firstTime, goOn, notClicked, gMenuButton, gMenuExit, gPlaySound, notOn
  3.   if firstTime then
  4.     member("txtField3").text = EMPTY
  5.     firstTime = 0
  6.   end if
  7. end
  8.  
  9. on exitFrame
  10.   global firstTime, notClicked, gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow, gTiming, goOn, gPlaySound, goQuick, audioPath, notOn
  11.   if gTiming then
  12.     startTimer()
  13.     gTiming = 0
  14.   end if
  15.   if the timer > (8 * 60) then
  16.     go(the frame + 1)
  17.   else
  18.     go(the frame)
  19.   end if
  20.   repeat with rc in [gMenuButton, gMenuExit, gTourForwardArrow, gTourBackArrow]
  21.     doRollover(rc)
  22.   end repeat
  23.   if goOn then
  24.     notClicked = 1
  25.     goOn = 0
  26.     firstTime = 1
  27.     gPlaySound = 1
  28.     notOn = 1
  29.     go(the frame + 1)
  30.   else
  31.     go(the frame)
  32.   end if
  33. end
  34.